
<?php if ($data): ?>
    <div class="row-fluid">
        <div class=" box-img cl-relative">
            <a href="<?php echo $data->publicUrl ?>" title="<?php echo $data->name ?>">
                <img src="<?php echo $data->getPublicImage(475, 475) ?>" alt="<?php echo $data->url ?>"/>
            </a>
            <?php if ($this->showBtn == true): ?>
                <div class="btn-hover">
                    <a href="<?php echo $data->publicUrl ?>" title="<?php echo $data->name ?>" class=" btn btn-primary">
                        Xem chi tiết ->
                    </a>
                </div>
            <?php endif; ?>
        </div>
        <div class=" cl-info-product">
            <h1 class="title-product">
                <a href="<?php echo $data->publicUrl ?>">
                    <?php echo $data->name ?>
                </a>
            </h1>
            <div class="district">
                <?php echo $data->category->name ?>
            </div>
            <div class="box-btn-price">
                <div class="price-btn">
                    <div class="price">
                        <?php echo $data->price ?>
                    </div>
                    <a href="<?php echo Yii::app()->createUrl('site/contact') ?>" 
                       class="btn btn-large btn-success btn-bao" title="<?php echo $data->name ?>">
                        LIÊN HỆ MUA NHÀ
                    </a>
                </div>
            </div>
            <div class="summary-product">
                <?php echo MyUtil::word_limiter($data->description, 45); ?>
                <?php if ($this->showBtn == true): ?>
                    <div>
                        <a href="<?php echo $data->publicUrl ?>" title="<?php echo $data->name ?>">
                            Xem thêm
                        </a>
                    </div>
                <?php endif; ?>
            </div>
            <div class="address-project">
                <?php echo $data->address ?>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row-fluid row-count-view">
        <div class="count-product">
            <div class="fr">
                <div class="facebook-like">
                    <div style="font-weight: 700;color: #0181a6"><?php echo Option::getItem('noti_social') ?></div>
                    <!-- AddThis Button BEGIN -->
                    <div class="addthis_toolbox addthis_default_style ">
                        <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
                        <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
                        <a class="addthis_button_tweet"></a>
                        <a class="addthis_counter addthis_pill_style"></a>
                    </div>
                    <script type="text/javascript">var addthis_config = {"data_track_addressbar": false};</script>
                    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-534fa53d4e81299e"></script>
                    <!-- AddThis Button END -->
                    <div class="clear"></div>
                </div>
            </div>
            Lượt xem: <?php echo $data->count_view ?>
        </div>
    </div>


    <!--                    <div id="myCarousel" class="carousel slide">
                            <ol class="carousel-indicators">
                                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                                <li data-target="#myCarousel" data-slide-to="1"></li>
                                <li data-target="#myCarousel" data-slide-to="2"></li>
                            </ol>
                             Carousel items 
                            <div class="carousel-inner">
    <?php for ($i = 0; $i < 4; $i++): ?>
                                                                                                                                        <div class="item<?php echo $i == 0 ? ' active' : '' ?>">
                                                                                                                                            <img src="<?php echo $this->assetDir . "img/produc-demo.jpg" ?>"/>
                                                                                                                                            <div class="carousel-caption">
                                                                                                                                                <h4>First Thumbnail label <?php echo $i; ?></h4>
                                                                                                                                                <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                                                                                                                                            </div>
                                                                                                                                        </div>
    <?php endfor; ?>
                            </div>
                             Carousel nav 
                            <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
                            <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
                        </div>
                        <script>
                            $('.carousel').carousel()
                        </script>-->
<?php endif; ?>